
<%
/**
页面下部分页处理
**/
%>
<%@ page language="java" pageEncoding="UTF-8"%>
<input type="hidden" name="pager.offset" />
<input type="hidden" name="pageSize" />
<table class="pager floatRight">
	<tr>

		<pg:pager url="${ctx}/demo/demoManage.do" items="${Page.totalSize}"
			maxPageItems="${Page.pageSize}" maxIndexPages="20"
			export="offset,currentPageNumber=pageNumber">
			<pg:param name="method" value="list" />

			<td>
				<pg:first export="firstItem">
					<logic:equal name="Page.offset" value="0">
						<span class="unprev" title="已经是第一页">已经是第一页</span>
					</logic:equal>
					<logic:notEqual name="Page.offset" value="0">
						<a
							href="javascript:gotoPage(${Page.offset - 1},${Page.pageSize});"
							class="prev" onmouseover="this.className = 'onprev'"
							onmouseout="this.className = 'prev'" title="上一页">上一页</a>
					</logic:notEqual>
				</pg:first>

			</td>


			<td class="pagernum">
				<pg:pages export="firstItem,pageNumber">
					<logic:equal name="pageNumber" value="${Page.offset+1}">
						<strong class="pagecurrent">${pageNumber}</strong>
					</logic:equal>
					<logic:notEqual name="pageNumber" value="${Page.offset+1}">
						<a href="javascript:gotoPage(${firstItem - 1},${Page.pageSize});">${pageNumber}</a>
					</logic:notEqual>
				</pg:pages>
			</td>

			<td style="padding-right: 20px">
				<pg:next export="firstItem">
					<a href="javascript:gotoPage(${firstItem - 1},${Page.pageSize});"
						style="padding-right: 20px" class="next"
						onmouseover="this.className = 'onnext'"
						onmouseout="this.className = 'next'" title="下一页">下一页</a>
					</a>
				</pg:next>
			</td>
		</pg:pager>
	</tr>
</table>